﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Company.master" AutoEventWireup="true" CodeFile="Company_Contact.aspx.cs" Inherits="Company_Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cph_Main" Runat="Server">
    <div class="Dialog">
        <div class="Title">
            单位联系方式</div>
        <div class="Content">
            <asp:Panel ID="PanelView" runat="server">
                <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                    <tr>
                        <td class="td">
                            联系人
                            <td>
                                <asp:Literal ID="lbl_Contact" runat="server"></asp:Literal>
                            </td>
                    </tr>
                    <tr>
                        <td class="td">
                            联系电话
                        </td>
                        <td>
                            <asp:Literal ID="lbl_Tel" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td class="td">
                            联系人电子邮箱
                        </td>
                        <td>
                            <asp:Literal ID="lbl_Email" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td class="td">
                            联系地址
                        </td>
                        <td>
                            <asp:Literal ID="lbl_Address" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td class="td">
                            网址
                        </td>
                        <td>
                            <asp:HyperLink ID="lbl_WebSite" runat="server" Target="_blank">[lbl_WebSite]</asp:HyperLink>
                        </td>
                    </tr>
                </table>
                <asp:Button ID="btn_Edit" runat="server" CssClass="Button" OnClick="btn_Edit_Click"
                    Text="编辑" />
            </asp:Panel>
            <asp:Panel ID="PanelEdit" runat="server">
                <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                    <tr>
                        <td class="td">
                            <span class="RedFont">*</span>联系人
                            <td>
                                <asp:TextBox ID="txt_Contact" runat="server" MaxLength="10"></asp:TextBox>
                            </td>
                    </tr>
                    <tr>
                        <td class="td">
                            <span class="RedFont">*</span>联系电话
                        </td>
                        <td>
                            <asp:TextBox ID="txt_Tel" runat="server" MaxLength="20"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="td">
                            <span class="RedFont">*</span>联系人电子邮箱
                        </td>
                        <td>
                            <asp:TextBox ID="txt_Email" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="电子邮箱不能为空"
                                ControlToValidate="txt_Email"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_Email"
                                ErrorMessage="邮箱格式不符" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="td">
                            <span class="RedFont">*</span>联系地址
                        </td>
                        <td>
                            <asp:TextBox ID="txt_Address" runat="server" MaxLength="100"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="td">
                            网址
                        </td>
                        <td>
                            <asp:TextBox ID="txt_WebSite" runat="server" MaxLength="40"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <asp:Button ID="btn_Submit" CssClass="Button" runat="server" Text="提交" OnClick="btn_Submit_Click" />
                &nbsp;<asp:Button ID="btn_Cancel" CssClass="Button" runat="server" Text="取消" OnClick="btn_Cancel_Click" />
                <br />
                <asp:Label ID="lbl_Error" runat="server" ForeColor="Red"></asp:Label>
            </asp:Panel>
        </div>
    </div>
</asp:Content>

